package com.example.dubbosummer.controller;

import com.example.dubboprider.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ApiController {

//    @Reference(version = "1.0.0")
//    @Reference()
    @Autowired
    private ProductService productService;

    @Autowired
    private ProductService aa;
    @RequestMapping("/sayHello")
    public String sayHello() {
        System.out.println(aa);
        aa.productService();
        return productService.productService();
    }
}
